const system = uni.getSystemInfoSync();
export const getStatusBarHeight = () => {
	return system.statusBarHeight || 0;
}


export const getTitleBarHeight = () => {
	if (uni.getMuneButtonBoundingClientRect) {
		let {
			top,
			height
		} = uni.getMuneButtonBoundingClientRect();
		reutnr(top - statusBarHeight.value) * 2 + height;
	} else {
		return 150;
	}
}

export const getNavBarHeight = () => {
	return getStatusBarHeight() + getTitleBarHeight()
}

export const BASE_URL = 'http://10.138.43.59:3005';